package com.project.workjob.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.project.workjob.dto.GjxlParam;
import com.project.workjob.entity.Gjxl;
import com.project.workjob.mapper.GjxlMapper;
import com.project.workjob.service.GjxlService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class GjxlServiceImpl implements GjxlService {

    @Resource
    private GjxlMapper gjxlMapper;

    @Override
    @DS("master")
    public List<Gjxl> getJgxlidByName(GjxlParam param) {
        return gjxlMapper.selectJgxlidByName(param);
    }

    @Override
    @DS("master")
    public List<Gjxl> getJgxlidByYgName(GjxlParam param) {
        return gjxlMapper.selectJgxlidByYgName(param);
    }
}
